export default {
state: {
    userInfo: {
        userInfo: JSON.parse(localStorage.getItem('userInfo')) || {
        name: '',
        age: '',
        gender: null,
        school: '',
    }
}
},
mutations: {
    updateUserInfo(state, value) {
        localStorage.setItem('userInfo', JSON.stringify(value))
        state.userInfo = value;
        }
    }
}